// koa_body_demo.js

const Koa = require('koa');
const koaBody = require('koa-body');

const app = new Koa();

app.use(koaBody()); // (1)
app.use(ctx => {
    ctx.body = `Request Body: ${JSON.stringify(ctx.request.body)}`;
});

app.listen(3000);


